package com.app.game.other;

import java.util.ArrayList;

public class Game {
	private boolean ishost;
	private ArrayList<Player> playerList;
	private Player player;
	private volatile static Game game;
	
	private Game(){
		playerList = new ArrayList<Player>();
	}
	
	public static Game getInstance(){
		if(game==null){
			synchronized(Game.class){
				if(game==null){
					game = new Game();
				}
			}
		}
		return game;
	}

	public ArrayList<Player> getPlayerList() {
		return playerList;
	}

	public void setPlayerList(ArrayList<Player> playerList) {
		this.playerList = playerList;
	}

	public Player getPlayer() {
		return player;
	}

	public void setPlayer(Player player) {
		this.player = player;
	}
	
	
	
}
